<template>
    <div>
        <h1>page1</h1>
        <p>{{msg}}</p>
        <h2>{{msg1()}}</h2>
    </div>
</template>
<script>
    export default {
        data () {
            return {

                msg: "我是page1组件"
            }
        },
        methods:{
            msg1:function(){
                console.log(4,this.$route.params)
            }
        }
    }
    
</script>